home *** CD-ROM | disk | FTP | other *** search
- // the implementation of class EDIT_BLOCK_LAYER
- // Copyright (C) 1996, 1997 Kazutaka Hirata <khirata@jove.acs.unt.edu>
-
- #include "../stdafx.h"
-
- #include "../common/bool.h"
-
- #include "edblockl.h"
-
- STAGE* EDIT_BLOCK_LAYER::init_new(KBAN_INFO& /*info*/, KBAN_DRAW& /*draw*/)
- {
- return new STAGE_SELECT;
- }
-
- const char* EDIT_BLOCK_LAYER::get_name(void)
- {
- return "Edit:Block Layer";
- }
-
- STAGE* EDIT_BLOCK_LAYER::STAGE_SELECT::mouse_left_down(KBAN_INFO& info, KBAN_DRAW& /*draw*/, const XY& pc, UINT /*nFlags*/)
- {
- XY ac1;
- info.grid().xy_pc2ac(pc, ac1);
- return new STAGE_BLOCK_LAYER(ac1);
- }
-
- STAGE* EDIT_BLOCK_LAYER::STAGE_SELECT::mouse_right_up(KBAN_INFO& info, KBAN_DRAW& draw, const XY& pc, UINT nFlags)
- {
- return NULL;
- }
-
- EDIT_BLOCK_LAYER::STAGE_BLOCK_LAYER::STAGE_BLOCK_LAYER(const XY& ac)
- : STAGE_BLOCK_CORE(true, ac)
- {
- }
-
- STAGE* EDIT_BLOCK_LAYER::STAGE_BLOCK_LAYER::mouse_left_up(KBAN_INFO& info, KBAN_DRAW& draw, const XY& pc, UINT nFlags)
- {
- STAGE_BLOCK_CORE::mouse_left_up(info, draw, pc, nFlags);
- return new STAGE_SELECT;
- }
-
- STAGE* EDIT_BLOCK_LAYER::STAGE_BLOCK_LAYER::mouse_right_up(KBAN_INFO& info, KBAN_DRAW& draw, const XY& pc, UINT nFlags)
- {
- STAGE_BLOCK_CORE::mouse_right_up(info, draw, pc, nFlags);
- return new STAGE_SELECT;
- }
-